package com.qqbot.utils;

import java.util.Calendar;

/**
 * @author 付亚全
 */
public enum DateField {
    YEAR(Calendar.YEAR), MONTH(Calendar.MONTH), DATE(Calendar.DATE), DAY_OF_MONTH(Calendar.DAY_OF_MONTH),
    HOUR_OF_DAY(Calendar.HOUR_OF_DAY), HOUR(Calendar.HOUR), MINUTE(Calendar.MINUTE), SECOND(Calendar.SECOND),
    MILLISECOND(Calendar.MILLISECOND), WEEK(Calendar.WEEK_OF_YEAR), DAY_OF_WEEK(Calendar.DAY_OF_WEEK),
    DAY_OF_YEAR(Calendar.DAY_OF_YEAR),
    SEASON(-1), HALF_YEAR(-2);

    private int code;

    DateField(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
